package com.randy.recyclerviews.utils;

import android.content.Context;
import android.util.TypedValue;

public class UIUtils {
    public static int getPixels(Context context, float dip) {
        return Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, context.getResources().getDisplayMetrics()));
    }
}
